package me.ak;



import me.ak.gui.Canvas;
import me.ak.gui.GuiScore;
import me.ak.model.BarModel;
import me.ak.model.ChordModel;
import me.ak.model.ScoreModel;

public class UberScore {

	public static void main(String[] args) {
		//int res = 3 + (int) (13/12) - (Math.abs(13-12)/12);
		ScoreModel score = new ScoreModel();
		
		score.addStaff();
		score.addBar();
		//score.addBar();
		
		BarModel bm = score.getBarAt(0, 0); //first bar of first staff
		ChordModel middlec = new ChordModel(new int[] {0}, 16);
		ChordModel middlec2 = new ChordModel(new int[] {0}, 16);
		System.out.println(bm.addChord(middlec));
		System.out.println(bm.addChord(middlec2));
		
		System.out.println(score.saveNBT());
		
		new Canvas(new GuiScore(score));
	}
	
	
	

}
